﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mathematics.RationalNumbers;

namespace RecipeProject.Model
{
    public class Recipe
    {
        #region Properties

        public String Name { get; set; }

        public List<Ingredient> Ingredients { get; set; }

        public String Instructions { get; set; }

        #endregion

    }//end class RecipeProject

    public class Ingredient
    {
        #region Properties

        public String Name { get; set; }
        public Rational Quantity { get; set; }
        public String Measurement { get; set; }

        #endregion

        #region Overrides

        public override string ToString()
        {
            return Quantity.ToString() + " " + Measurement + " " + Name;
        }

        #endregion

    }//end class Ingredient
}
